package com.ks.comment.service;

import com.ks.comment.entity.ZpzComment;
import com.baomidou.mybatisplus.service.IService;
import com.ks.core.base.OperationContext;
import com.ks.core.dto.SearchCriteriaBase;

import java.util.Map;

/**
 * <p>
 * 信息评论日志表 服务类
 * </p>
 *
 * @author kingdee123
 * @since 2020-12-18
 */
public interface IZpzCommentService extends IService<ZpzComment> {

    int addComment(OperationContext operationContext,ZpzComment zpzComment);

    /**
     * 获取信息评论列表
     *
     * @param searchCriteriaBase
     * @return
     */
    Map<String, Object> getCommentList(OperationContext operationContext,SearchCriteriaBase searchCriteriaBase);

    /**
     * 屏蔽/审核通过接口
     *
     * @param operationContext
     * @param commentId
     * @param status
     * @return
     */
    int updateCommentStatus(OperationContext operationContext, int commentId, int status);

    /**
     * 后台获取评价清单
     * @param inFormationId
     * @param type
     * @param pageNo
     * @param pageSize
     * @return
     */
    Map<String, Object> getAdminCommentList(int inFormationId, String type, int pageNo, int pageSize);
}
